<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Admin\Model;
use Think\Model;
class LoginModel extends Model {
	public function logincheck(){
              $where['adname'] = $_POST['adname'];
              $info = $this->where($where)->find();
			 if($info['adname'] != $_POST['adname']){
                 return -2; 
              }else{
                 // if($info['adpsd'] != MD5($_POST['adpsd'])){
					  if($info['adpsd'] != ($_POST['adpsd'])){
                      return -1;
                  }
                  return $info['id'];
              }
	}

}
